#	$OpenBSD: Makefile.inc,v 1.68 2015/04/07 01:47:04 millert Exp $

# gen sources
.PATH: ${LIBCSRCDIR}/arch/${MACHINE_CPU}/gen ${LIBCSRCDIR}/gen

SRCS+=  alarm.c assert.c auth_subr.c authenticate.c \
        basename.c clock.c clock_getcpuclockid.c \
        closedir.c confstr.c ctermid.c ctype_.c \
        daemon.c devname.c dirfd.c dirname.c disklabel.c elf_hash.c err.c \
        errc.c errx.c errlist.c errno.c exec.c \
        fdatasync.c fnmatch.c fpclassify.c frexp.c \
        fstab.c ftok.c fts.c ftw.c getbsize.c getcap.c getcwd.c \
        getdomainname.c getgrent.c getgrouplist.c gethostname.c \
        getloadavg.c getlogin.c getmntinfo.c getnetgrent.c getpagesize.c \
        getprogname.c getpwent.c getttyent.c getusershell.c glob.c \
        initgroups.c isatty.c isctype.c isfdtype.c isfinite.c isinf.c \
        isnan.c isnormal.c signbit.c lockf.c login_cap.c nice.c \
        nlist.c nftw.c opendir.c pause.c popen.c posix_spawn.c psignal.c \
        pw_dup.c pwcache.c raise.c readdir.c readdir_r.c readpassphrase.c \
        rewinddir.c scandir.c seekdir.c setdomainname.c sethostname.c \
        setprogname.c setjmperr.c setmode.c setproctitle.c shm_open.c \
        siginterrupt.c siglist.c signal.c signame.c \
        sigsetops.c sleep.c statvfs.c strtofflags.c sysconf.c sysctl.c \
        syslog.c syslog_r.c telldir.c time.c times.c \
        tolower_.c ttyname.c \
        ttyslot.c toupper_.c ualarm.c uname.c unvis.c usleep.c \
        utime.c valloc.c vis.c wait.c wait3.c waitpid.c warn.c \
        warnc.c warnx.c vwarn.c vwarnc.c vwarnx.c verr.c verrc.c verrx.c

# indirect reference stubs, to be removed soon.
SRCS+=	_sys_errlist.c _sys_nerr.c _sys_siglist.c

# machine-dependent gen sources
# m-d Makefile.inc must include sources for:
#	_setjmp() fabs() frexp() infinity ldexp() modf() __nan
#	setjmp() sigsetjmp() __tfork_thread()

.include "${LIBCSRCDIR}/arch/${MACHINE_CPU}/gen/Makefile.inc"

MAN+=	__tfork_thread.3 alarm.3 auth_subr.3 authenticate.3 basename.3 clock.3 \
	clock_getcpuclockid.3 confstr.3 \
	ctermid.3 daemon.3 devname.3 directory.3 dirname.3 err.3 \
	exec.3 fabs.3 fnmatch.3 fpclassify.3 fpgetmask.3 frexp.3 ftok.3 fts.3 \
	ftw.3 getbsize.3 getcap.3 getcwd.3 getdomainname.3 getdiskbyname.3 \
	getfsent.3 getgrent.3 getgrouplist.3 gethostname.3 getloadavg.3 \
	getmntinfo.3 getnetgrent.3 getpagesize.3 getpass.3 getprogname.3 \
	getpwent.3 getpwnam.3 \
	getttyent.3 getusershell.3 glob.3 initgroups.3 isalnum.3 isalpha.3 \
	isascii.3 isblank.3 iscntrl.3 isdigit.3 isfdtype.3 isgraph.3 \
	isgreater.3 islower.3 isprint.3 ispunct.3 isspace.3 isupper.3 \
	isxdigit.3 ldexp.3 lockf.3 login_cap.3 modf.3 nice.3 nlist.3 pause.3 \
	popen.3 posix_spawn.3 posix_spawn_file_actions_addopen.3 \
	posix_spawn_file_actions_init.3 posix_spawnattr_getflags.3 \
	posix_spawnattr_getpgroup.3 posix_spawnattr_init.3 \
	psignal.3 pw_dup.3 pwcache.3 raise.3 readpassphrase.3 \
	scandir.3 setjmp.3 setmode.3 setproctitle.3 shm_open.3 \
	siginterrupt.3 signal.3 \
	sigsetops.3 sleep.3 statvfs.3 sysconf.3 sysctl.3 strtofflags.3 \
	syslog.3 time.3 times.3 toascii.3 tolower.3 toupper.3 \
	ttyname.3 ualarm.3 uname.3 unvis.3 usleep.3 utime.3 valloc.3 vis.3

MLINKS+=__tfork_thread.3 __tfork.2
MLINKS+=auth_subr.3 auth_open.3 auth_subr.3 auth_call.3 auth_subr.3 \
	auth_challenge.3 auth_subr.3 auth_check_change.3 auth_subr.3 \
	auth_check_expire.3 auth_subr.3 auth_clean.3 auth_subr.3 auth_close.3 \
	auth_subr.3 auth_clrenv.3 auth_subr.3 auth_clroption.3 auth_subr.3 \
	auth_clroptions.3 auth_subr.3 auth_getitem.3 auth_subr.3 auth_getpwd.3 \
	auth_subr.3 auth_getstate.3 auth_subr.3 auth_getvalue.3 auth_subr.3 \
	auth_set_va_list.3 auth_subr.3 auth_setdata.3 auth_subr.3 \
	auth_setenv.3 auth_subr.3 auth_setitem.3 auth_subr.3 auth_setoption.3 \
	auth_subr.3 auth_setpwd.3 auth_subr.3 auth_setstate.3 \
	auth_subr.3 bsd_auth.3
MLINKS+=authenticate.3 auth_approval.3 authenticate.3 auth_cat.3 \
	authenticate.3 auth_checknologin.3 authenticate.3 auth_mkvalue.3 \
	authenticate.3 auth_userchallenge.3 authenticate.3 auth_usercheck.3 \
	authenticate.3 auth_userokay.3 authenticate.3 auth_userresponse.3 \
	authenticate.3 auth_verify.3
MLINKS+=directory.3 closedir.3 directory.3 dirfd.3 directory.3 opendir.3 \
	directory.3 readdir.3 directory.3 rewinddir.3 directory.3 seekdir.3 \
	directory.3 telldir.3 directory.3 readdir_r.3 directory.3 fdopendir.3
MLINKS+=err.3 verr.3 err.3 errx.3 err.3 verrx.3 err.3 warn.3 err.3 vwarn.3 \
	err.3 warnx.3 err.3 vwarnx.3 \
	err.3 errc.3 err.3 verrc.3 err.3 warnc.3 err.3 vwarnc.3
MLINKS+=exec.3 execl.3 exec.3 execle.3 exec.3 execlp.3 exec.3 execv.3 \
	exec.3 execvp.3 exec.3 execvpe.3
MLINKS+=fabs.3 fabsf.3 fabs.3 fabsl.3
MLINKS+=fpclassify.3 finite.3 fpclassify.3 finitef.3 fpclassify.3 isfinite.3 \
	fpclassify.3 isinf.3 fpclassify.3 isinff.3 fpclassify.3 isnan.3 \
	fpclassify.3 isnanf.3 fpclassify.3 isnormal.3 fpclassify.3 signbit.3
MLINKS+=fpgetmask.3 fpgetround.3 fpgetmask.3 fpgetsticky.3 \
	fpgetmask.3 fpsetmask.3 fpgetmask.3 fpsetround.3 \
	fpgetmask.3 fpsetsticky.3
MLINKS+=frexp.3 frexpf.3 frexp.3 frexpl.3
MLINKS+=fts.3 fts_open.3 fts.3 fts_read.3 fts.3 fts_children.3 \
	fts.3 fts_set.3 fts.3 fts_close.3
MLINKS+=ftw.3 nftw.3
MLINKS+=getcap.3 cgetcap.3 getcap.3 cgetclose.3 getcap.3 cgetent.3 \
	getcap.3 cgetfirst.3 getcap.3 cgetmatch.3 getcap.3 cgetnext.3 \
	getcap.3 cgetnum.3 getcap.3 cgetset.3 getcap.3 cgetstr.3 \
	getcap.3 cgetustr.3 getcap.3 cgetusedb.3
MLINKS+=getcwd.3 getwd.3
MLINKS+=getdomainname.3 setdomainname.3
MLINKS+=getfsent.3 endfsent.3 getfsent.3 getfsfile.3 getfsent.3 getfsspec.3 \
	getfsent.3 setfsent.3
MLINKS+=getgrent.3 endgrent.3 getgrent.3 setgroupent.3 getgrent.3 getgrgid.3 \
	getgrent.3 getgrnam.3 getgrent.3 setgrent.3 getgrent.3 setgrfile.3 \
	getgrent.3 getgrgid_r.3 getgrent.3 getgrnam_r.3
MLINKS+=gethostname.3 sethostname.3
MLINKS+=getnetgrent.3 endnetgrent.3 getnetgrent.3 innetgr.3 \
	getnetgrent.3 setnetgrent.3
MLINKS+=getprogname.3 setprogname.3
MLINKS+=getpwent.3 endpwent.3 getpwent.3 setpwent.3
MLINKS+=getpwnam.3 getpwuid.3 getpwnam.3 getpwnam_r.3 getpwnam.3 getpwuid_r.3 \
	getpwnam.3 setpassent.3
MLINKS+=getttyent.3 endttyent.3 getttyent.3 getttynam.3 getttyent.3 setttyent.3
MLINKS+=getusershell.3 endusershell.3 getusershell.3 setusershell.3
MLINKS+=glob.3 globfree.3
MLINKS+=isgreater.3 isgreaterequal.3 isgreater.3 isless.3 isgreater.3 \
	islessequal.3 isgreater.3 islessgreater.3 isgreater.3 isunordered.3
MLINKS+=ldexp.3 ldexpf.3 ldexp.3 ldexpl.3
MLINKS+=login_cap.3 login_getclass.3 login_cap.3 login_getstyle.3 login_cap.3 \
	login_getcapbool.3 login_cap.3 login_getcapnum.3 login_cap.3 \
	login_getcapsize.3 login_cap.3 login_getcapstr.3 login_cap.3 \
	login_getcaptime.3 login_cap.3 login_close.3 login_cap.3 \
	secure_path.3 login_cap.3 setclasscontext.3 login_cap.3 setusercontext.3
MLINKS+=modf.3 modff.3 modf.3 modfl.3
MLINKS+=popen.3 pclose.3
MLINKS+=posix_spawn.3 posix_spawnp.3 \
	posix_spawnattr_init.3 posix_spawnattr_destroy.3 \
	posix_spawnattr_getpgroup.3 posix_spawnattr_setsigmask.3 \
	posix_spawnattr_getpgroup.3 posix_spawnattr_setsigdefault.3 \
	posix_spawnattr_getpgroup.3 posix_spawnattr_setschedpolicy.3 \
	posix_spawnattr_getpgroup.3 posix_spawnattr_setschedparam.3 \
	posix_spawnattr_getpgroup.3 posix_spawnattr_setpgroup.3 \
	posix_spawnattr_getpgroup.3 posix_spawnattr_getschedparam.3 \
	posix_spawnattr_getpgroup.3 posix_spawnattr_getschedpolicy.3 \
	posix_spawnattr_getpgroup.3 posix_spawnattr_getsigdefault.3 \
	posix_spawnattr_getpgroup.3 posix_spawnattr_getsigmask.3 \
	posix_spawnattr_getflags.3 posix_spawnattr_setflags.3 \
	posix_spawn_file_actions_init.3 posix_spawn_file_actions_destroy.3 \
	posix_spawn_file_actions_addopen.3 posix_spawn_file_actions_adddup2.3 \
	posix_spawn_file_actions_addopen.3 posix_spawn_file_actions_addclose.3
MLINKS+=psignal.3 sys_siglist.3 psignal.3 sys_signame.3
MLINKS+=pwcache.3 user_from_uid.3 pwcache.3 group_from_gid.3
MLINKS+=scandir.3 alphasort.3
MLINKS+=setjmp.3 _longjmp.3 setjmp.3 _setjmp.3 setjmp.3 longjmp.3 \
	setjmp.3 longjmperror.3 setjmp.3 sigsetjmp.3 setjmp.3 siglongjmp.3
MLINKS+=setmode.3 getmode.3
MLINKS+=shm_open.3 shm_unlink.3 shm_open.3 shm_mkstemp.3
MLINKS+=sigsetops.3 sigemptyset.3 sigsetops.3 sigfillset.3 \
	sigsetops.3 sigaddset.3 sigsetops.3 sigdelset.3 \
	sigsetops.3 sigismember.3
MLINKS+=statvfs.3 fstatvfs.3
MLINKS+=strtofflags.3 fflagstostr.3
MLINKS+=syslog.3 closelog.3 syslog.3 openlog.3 syslog.3 setlogmask.3 \
	syslog.3 vsyslog.3 syslog.3 syslog_r.3 syslog.3 closelog_r.3 \
	syslog.3 openlog_r.3 syslog.3 setlogmask_r.3 syslog.3 vsyslog_r.3
MLINKS+=tolower.3 _tolower.3
MLINKS+=toupper.3 _toupper.3
MLINKS+=ttyname.3 ttyname_r.3 ttyname.3 isatty.3 ttyname.3 ttyslot.3
MLINKS+=unvis.3 strunvis.3 unvis.3 strnunvis.3
MLINKS+=vis.3 strvis.3 vis.3 strnvis.3 vis.3 strvisx.3 vis.3 stravis.3
